package me.zhengjie.minbearwcs.dao.outbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.outbound.inf.OutboundOrderDetailHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.outbound.OutboundOrderDetailHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.outbound.history.OutboundOrderDetailHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class OutboundOrderDetailHistoryDaoImpl implements OutboundOrderDetailHistoryDao {

    private final OutboundOrderDetailHistoryMapper mapper;

    @Override
    public boolean insert(OutboundOrderDetailHistory outboundOrderDetailHistory) {
        return mapper.insert(outboundOrderDetailHistory) == 1;
    }
}
